#include <avr/io.h>
#include <ACUAS.h>
#include <ACUASLCD-CSlab.h>
#include <variables.c>
#include <shuffle.c>
#include <control.c>
#include <player_hand.c>
#include <dealer_hand.c>



void Initialization()  //start the card
{
DDRA=0X00;
PORTA=0XFF;
ACTIVATE_LCD
RANDOM_INIT
}

int main()
{
Initialization(); //Team A ready

Start_new(); //Team A, starts a new game, and reset the score

	while(1)
	{

	player_hand(); //Team C, say the value of the player's cards

	if (total_player<22)
		{
		dealer_hand(); //Team D, say the value of the dealer'sards
		}
	result(); //Team A, say the value of who wins the game

	score(); //Team A, gives the total score of the player and dealer
	
	}
return 1;
}
